 <#setting time_zone="${timeZone}" >
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet">
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/log/onlineLogList" onsubmit="return divSearch(this, 'jbsxBox');">
    <div class="pageHeader">
    <div>
          <span class="fn-left" style="margin-top:5px;"><@label key="onlineCount.C,colon">当前在线人数：</@label><span id="selected_count"><#if page.totalCount??>${page.totalCount?c}</#if></span></span>
          <span class="fn-right">
          <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="refresh.B">刷新</@label></button>
                        </div>
                    </div>
          </span>
      </div>
    </div>

<div class="pageContent">
    <table class="table" width="100%" layoutH="138" rel="jbsxBox">
        <thead>
            <tr>
                <th width="100"  orderField="userCode"<#if (page.orderField?? && page.orderField == 'userCode')>class="${page.orderDirection!''}"</#if>><@label key="userCode.C">用户编码</@label></th>
                <th width="100" orderField="userText"<#if (page.orderField?? && page.orderField == 'userText')>class="${page.orderDirection!''}"</#if>><@label key="userText.C">用户描述</@label></th>
                <th width="100" orderField="loginDateTime"<#if (page.orderField?? && page.orderField == 'loginDateTime')>class="${page.orderDirection!''}"</#if>><@label key="loginDateTime.C">登录时间</@label></th>
                <th width="100" orderField="onlineTime"<#if (page.orderField?? && page.orderField == 'onlineTime')>class="${page.orderDirection!''}"</#if>><@label key="onlineTime.C">在线时长(分钟)</@label></th>
                <th width="100" orderField="sessionId"<#if (page.orderField?? && page.orderField == 'sessionId')>class="${page.orderDirection!''}"</#if>><@label key="sessionId.C">会话ID</@label></th>
                <th width="100" orderField="ipAddress"<#if (page.orderField?? && page.orderField == 'ipAddress')>class="${page.orderDirection!''}"</#if>><@label key="ipAddress.C">IP地址</@label></th>
                <th width="120" orderField="macAddress"<#if (page.orderField?? && page.orderField == 'macAddress')>class="${page.orderDirection!''}"</#if>><@label key="macAddress.C">MAC地址</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as log>
            <tr target="log_code" rel="${log.id!''}">
                <td>${log.userCode!''}</td>
                <td>${log.userText!''}</td>
                <td>${(log.loginDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${log.onlineTime!''}</td>
                <td>${log.sessionId!''}</td>
                <td>${log.ipAddress!''}</td>
                <td>${log.macAddress!''}</td>
            </tr>
            </#list> <#else>
            <tr target="log_id">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="log_id">
        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
        <div class="panelBar">
        <#if page??>
        <div class="pages">
            <span><@label key="pagePanelShow.C">显示</@label></span> <select class="combox" name="numPerPage"
                onchange="navTabPageBreak({numPerPage:this.value},'jbsxBox')"> <#list
                [10,20,30,50,100,200] as page_size> <#if
                (page.numPerPage)==page_size>
                <option value="${page_size}" selected="selected">${page_size}</option>
                <#else>
                <option value="${page_size}">${page_size}</option> </#if> </#list>
            </select> <span><@label key="pagePanelMiddle.C">共</@label></span><span> <#if page.totalCount??>${page.totalCount?c}<@label key="item.C">条</@label></span></#if>
        </div>

        <div class="pagination" rel="jbsxBox"
            totalCount="<#if page.totalCount??>${page.totalCount?c}</#if>"
            numPerPage="<#if page.numPerPage??>${page.numPerPage?c}</#if>"
            pageNumShown="5"
            currentPage="<#if page.pageNum??>${page.pageNum?c}</#if>"></div>
        </#if>
    </div>
</div>
</form>